<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
  <meta name="theme-color" content="#1677ff">
  <title>网络连接已断开</title>
  <style>
    /* Reset and base styles */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
      background-color: #f5f5f5;
      color: #333;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }
    
    .offline-container {
      max-width: 100%;
      width: 400px;
      text-align: center;
      background-color: white;
      border-radius: 12px;
      padding: 32px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .icon {
      font-size: 64px;
      margin-bottom: 24px;
      color: #999;
    }
    
    h1 {
      font-size: 24px;
      margin-bottom: 16px;
      color: #333;
    }
    
    p {
      font-size: 16px;
      line-height: 1.5;
      color: #666;
      margin-bottom: 24px;
    }
    
    .retry-button {
      background-color: #1677ff;
      color: white;
      border: none;
      border-radius: 24px;
      padding: 12px 24px;
      font-size: 16px;
      font-weight: 500;
      cursor: pointer;
      transition: background-color 0.3s;
      outline: none;
    }
    
    .retry-button:hover {
      background-color: #0e5cca;
    }
    
    .retry-button:active {
      transform: scale(0.98);
    }
  </style>
</head>

<body>
  <div class="offline-container">
    <div class="icon">📶</div>
    <h1>网络连接已断开</h1>
    <p>无法连接到网络，请检查您的网络连接并重试。</p>
    <button class="retry-button" onclick="window.location.reload()">重新连接</button>
  </div>
  
  <script>
    // Check if we're back online
    window.addEventListener('online', () => {
      window.location.reload();
    });
  </script>
</body>
</html>